package cn.le.netty.beans;

import org.msgpack.annotation.Message;

/**
 *  netty消息体
 */
@Message
public class NettyMsg {

    private String id;
    private int fUid;
    private int tUid;
    private String content;
    private int code;

    public NettyMsg(){}

    public NettyMsg(String id,int code,String content) {
        this.id = id;
        this.code = code;
        this.content = content;
    }

    public NettyMsg(String id, int msgCode) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public int getfUid() {
        return fUid;
    }

    public void setfUid(int fUid) {
        this.fUid = fUid;
    }

    public int gettUid() {
        return tUid;
    }

    public void settUid(int tUid) {
        this.tUid = tUid;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    @Override
    public String toString() {
        return "NettyMsg{" +
                "id='" + id + '\'' +
                ", fUid=" + fUid +
                ", tUid=" + tUid +
                ", content='" + content + '\'' +
                ", code=" + code +
                '}';
    }
}
